package com.mdinfo.gw.door.bean

import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable
import java.util.*

/**
 * Created by Administrator on 2018/1/8.
 * 门事件实体
 */
@TableName("door_event")
data class DoorEvent(
    var id:Int = 0,                 //主键
    var doorId:Int? = null,             //门id
    var deptId:Int? = null,             //部门id
    var doorAccessId:Int? = null,       //门禁id

    var cardId:Int? = null,             //门卡id

    var doorEvent:Int? = null,          //事件(1:进门,2:出门,3:无效卡)
    var eventType:Int? = null,          //事件类型(1:开门,2:关门)
    var trigger:Int? = null,            //事件触发(1:门卡,2:地图,3:其他)
    var createTime:Date? = null         //创建时间

) : Model<DoorEvent>() {
    override fun pkVal(): Serializable {
        return this.id
    }
}